package com.hxf.service.user;

import java.util.List;

import com.hxf.dto.AdminRoleDto;
import com.hxf.dto.RestaurantAdminRole;
import com.hxf.dto.RestaurentUserDto;
import com.hxf.dto.ReturnData;
import com.hxf.dto.UserDto;
import com.hxf.exception.DaoLevelException;
import com.hxf.exception.ServiceException;
import com.hxf.service.base.BaseService;
import com.hxf.web.vo.UserRoleVo;

public interface RestaurantUserService extends BaseService{
	
	/**
	 * 餐厅管理员信息
	 * @param userDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws ServiceException
	 */
	public ReturnData<RestaurentUserDto> findByRestaurentUser(RestaurentUserDto userDto, int targetPage, int pageSize)throws ServiceException;
	
	/**
	 * 修改餐厅管理员状态
	 * @param userIds
	 * @param status
	 * @throws ServiceException
	 */
	public void updateUserStatus(String userIds,Integer status) throws ServiceException;
	
	/**
	 * 餐厅管理员分配权限
	 * @param userDto
	 * @param roleIds
	 */
	public void saveUserAddRole(RestaurantAdminRole userDto,String roleIds)throws ServiceException;
	
	/**
	 * 登录
	 * @param userDto
	 * @return
	 * @throws ServiceException
	 */
	public int restaurantUserLogin(RestaurentUserDto restaurentUserDto)throws ServiceException;
	
	/**
	 * 查找角色
	 * @param urDto
	 * @param userId
	 * @return
	 * @throws ServiceException
	 */
	public List<UserRoleVo> findByUserAddRole(RestaurentUserDto urDto,Integer userId) throws ServiceException;

	public RestaurentUserDto findRestaurentUser(RestaurentUserDto dto)
			throws ServiceException;
}
